package cn.kbyue.exceptiondemo.dto;

import cn.kbyue.exceptiondemo.common.validate.DateSequenceCheck;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.time.LocalDate;

/**
 * DateSequenceCheck 校验 开始日期 小于 结束日期
 * @author xlang
 * @date 2023/4/4 13:23
 */
@Data
@DateSequenceCheck
public class DateForm {
    @NotNull
    private LocalDate startDate;
    @NotNull
    private LocalDate endDate;
}
